Optimal. Leaf size=69 \[ \frac {3}{2} \tanh ^{-1}\left (\frac {5+2 x^2}{2 \sqrt {3+5 x^2+x^4}}\right )-\frac {\tanh ^{-1}\left (\frac {6+5 x^2}{2 \sqrt {3} \sqrt {3+5 x^2+x^4}}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1265, 857, 635,
212, 738} \begin {gather*} \frac {3}{2} \tanh ^{-1}\left (\frac {2 x^2+5}{2 \sqrt {x^4+5 x^2+3}}\right )-\frac {\tanh ^{-1}\left (\frac {5 x^2+6}{2 \sqrt {3} \sqrt {x^4+5 x^2+3}}\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 857
Rule 1265
Rubi steps
\begin {align*} \int \frac {2+3 x^2}{x \sqrt {3+5 x^2+x^4}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {2+3 x}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=\frac {3}{2} \text {Subst}\left (\int \frac {1}{\sqrt {3+5 x+x^2}} \, dx,x,x^2\right )+\text {Subst}\left (\int \frac {1}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=-\left (2 \text {Subst}\left (\int \frac {1}{12-x^2} \, dx,x,\frac {6+5 x^2}{\sqrt {3+5 x^2+x^4}}\right )\right )+3 \text {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {5+2 x^2}{\sqrt {3+5 x^2+x^4}}\right )\\ &=\frac {3}{2} \tanh ^{-1}\left (\frac {5+2 x^2}{2 \sqrt {3+5 x^2+x^4}}\right )-\frac {\tanh ^{-1}\left (\frac {6+5 x^2}{2 \sqrt {3} \sqrt {3+5 x^2+x^4}}\right )}{\sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 63, normalized size = 0.91 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {x^2-\sqrt {3+5 x^2+x^4}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {3}{2} \log \left (-5-2 x^2+2 \sqrt {3+5 x^2+x^4}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 52, normalized size = 0.75
method | result | size |
default | \(\frac {3 \ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{2}-\frac {\arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right ) \sqrt {3}}{3}\) | \(52\) |
elliptic | \(\frac {3 \ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{2}-\frac {\arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right ) \sqrt {3}}{3}\) | \(52\) |
trager | \(-\frac {\RootOf \left (\textit {\_Z}^{2}-3\right ) \ln \left (-\frac {5 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{2}+6 \RootOf \left (\textit {\_Z}^{2}-3\right )+6 \sqrt {x^{4}+5 x^{2}+3}}{x^{2}}\right )}{3}-\frac {3 \ln \left (2 x^{2}-2 \sqrt {x^{4}+5 x^{2}+3}+5\right )}{2}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 58, normalized size = 0.84 \begin {gather*} -\frac {1}{3} \, \sqrt {3} \log \left (\frac {2 \, \sqrt {3} \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2}} + \frac {6}{x^{2}} + 5\right ) + \frac {3}{2} \, \log \left (2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 75, normalized size = 1.09 \begin {gather*} \frac {1}{3} \, \sqrt {3} \log \left (\frac {25 \, x^{2} - 2 \, \sqrt {3} {\left (5 \, x^{2} + 6\right )} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (5 \, \sqrt {3} - 6\right )} + 30}{x^{2}}\right ) - \frac {3}{2} \, \log \left (-2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {3 x^{2} + 2}{x \sqrt {x^{4} + 5 x^{2} + 3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.84, size = 78, normalized size = 1.13 \begin {gather*} \frac {1}{3} \, \sqrt {3} \log \left (\frac {x^{2} + \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2} - \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}\right ) - \frac {3}{2} \, \log \left (2 \, x^{2} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.01, size = 56, normalized size = 0.81 \begin {gather*} \frac {3\,\ln \left (\sqrt {x^4+5\,x^2+3}+x^2+\frac {5}{2}\right )}{2}-\frac {\sqrt {3}\,\left (\ln \left (\frac {1}{x^2}\right )+\ln \left (2\,\sqrt {3}\,\sqrt {x^4+5\,x^2+3}+5\,x^2+6\right )\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________